/**
 * 
 */
package com.zhmy.xmgl;


import com.eos.system.annotation.Bizlet;
import com.primeton.ext.data.sdo.DataUtil;
import com.primeton.ext.data.sdo.ExtendedDataObjectImpl;
import com.zhmy.xmgl.zhmytask.ZhmyVersionChange;

import commonj.sdo.DataObject;

/**
 * @author Robert
 * @date 2018-05-24 11:17:07
 *
 */
@Bizlet("getLastVersion")
public class getLastVersion {
	
	@Bizlet("查找最大值")
	public Long filer(ZhmyVersionChange[] users) {
		
		Long maxVersionId = 1L;
		Long tempv = 1L;
		
		int count = users.length;
		//System.out.println("count="+count);
		for (int a = 0; a < count; a ++) {
			
			ZhmyVersionChange te = users[a];
		
			tempv = te.getVcId();
			
			if (tempv > maxVersionId) {
				maxVersionId = tempv;
			}
		}
		return maxVersionId;
	}
	


}
